<!doctype html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <link rel="icon" type="image/svg+xml" href="/vite.svg" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Vite + React</title>
    <!--  <script>
          // 创建 ResizeObserver 实例
          const resizeObserver = new ResizeObserver(entries => {
    for (const entry of entries) {
        if (entry.target === document.documentElement) {
            let deviceWidth = entry.contentRect.width;
            if (deviceWidth >= 750) {
                deviceWidth = 750;
            }
            if (deviceWidth <= 320) {
                deviceWidth = 320;
            }
            document.documentElement.style.fontSize = deviceWidth / 7.5 + "px";
        }
    }
});
          // 页面加载时调用调整函数并开始观察根元素尺寸变化
          fnResize();
          resizeObserver.observe(document.documentElement);
      
          function fnResize() {
            let deviceWidth = document.documentElement.clientWidth || window.innerWidth;
            if (deviceWidth >= 750) {
              deviceWidth = 750;
            }
            if (deviceWidth <= 320) {
              deviceWidth = 320;
            }
            document.documentElement.style.fontSize = (deviceWidth / 7.5) * 2 + "px";
          }
        </script> -->
  </head>
  <body>
    <div id="root"></div>
    <script type="module" src="/src/main.jsx"></script>
  </body>
</html>
